package com.stockz.core.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class CoreConstant {
	public static final String keyPathDatabaseObjectDb = "database.objectdb.path";
	public static final String keyPathInstallation = "installation.path";
	public static final String keyPathLibrary = "library.path";
	public static final String keyPathConfiguration = "configuration.path";
	public static final String keyPathConfigurationModules = "configuration.modules.path";
	public static final String keyPathFilebase = "filebase.path";
	public static final String keyExtentionFilebaseFile = "filebase.file.extention";
	public static final String keyCurrentLocale = "currentLocale";
	public static final String keyLastTradingDate = "date.trading.last";
	
	public static final String isFirstRun = "globalFirstRun";
	
	public static final DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy");
	
	
	public static enum TIME_UNIT{
		DAILY("Daily"),
		WEEKLY("Weekly"),
		MONTHLY("Monthly"),
		QUARTERLY("Quarterly"),
		YEARLY("Yearly"),
		POINT_AND_FIGURE("Point and Figure"),
		CUSTOM("Custom");
		
		private TIME_UNIT(String value) {
			this.value = value;
		}
		
		private final String value;
		
		public String toString(){
			return value;
		}
	};
	
}
